﻿@model IEnumerable<SerieSpotter.Models.Season>
<table>
   
@foreach (var item in Model) {
    <tr>

        <td>
            <div style='float:left;'>
                <img src="@item.PosterURL" alt="poster" width="150" style="float: left; padding-left: 10px; padding-right: 10px; padding-bottom: 10px; padding-top:10px" />
            </div>
        </td>
        <td>
            <h2>
                @Html.ActionLink(@Resources.Resource.Seizoen + " " + @Html.DisplayFor(modelItem => item.Number), "Index", "Episodes", new { id = item.Id }, null)
            </h2>
            @item.EpisodesNumber @Resources.Resource.Afleveringen
        </td>  
        

        @if (User.IsInRole("admin")) // enkel zitchbaar voor admin
        {
            <td>
                @Html.ActionLink(@Resources.Resource.Edit, "Edit", new { id = item.Id })
            </td>
        }
    </tr>
}

</table>

